package com.frxuexi.park2209.adapter

import android.graphics.Color
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.base.entity.ColorBeanItem
import com.frxuexi.base.entity.ParkListItem
import com.frxuexi.park2209.R

class ColorAdapter:BaseQuickAdapter<ColorBeanItem,BaseViewHolder>(R.layout.item_color) {
    override fun convert(helper: BaseViewHolder, item: ColorBeanItem) {
        helper.setBackgroundColor(R.id.park_item_color,Color.parseColor(item.colorValue))
    }
}